package com.matrix.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.matrix.product.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @author 有点甜
 * @since 2025/7/27
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    void batchUpdateRatings(@Param("ratingsMap") Map<Long, BigDecimal> ratingsMap);
    void batchUpdateMonthlySales(@Param("salesMap") Map<Long, Integer> salesMap);
}
